<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>论坛</title>
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta http-equiv="cache-control" content="max-age=86400">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">

   <!-- <style>
        .loading-containter{
            background-color:#fff;
        }
        .loading-wrapper{
            background-image:url("../../../fmui/images/loading-bg.png");
            background-repeat:no-repeat;
            background-size:cover;
            position: absolute;
            top:0;
            bottom:0;
            left:0;
            right:0;
            width: 100%;
            height:100%;
        }
        .sk-wave-text{
            position: absolute;
            top:50%;
            margin-top:-20px;
            left:50%;
            margin-left:-60px;
            width: 120px;
            height: 20px;
            text-align: center;
            font-size: 13px;
            color: #fff;
        }
        .sk-wave-title{
            position: absolute;
            bottom:25px;
            left:50%;
            margin-left:-160px;
            width: 320px;
            height: 30px;
            text-align: center;
            font-size: 20px;
            color: #5e97f6;
        }
        .sk-wave {
            position: absolute;
            top:50%;
            margin-top:-140px;
            left:50%;
            margin-left:-60px;
            width: 120px;
            height: 60px;
            text-align: center;
        }
        .sk-wave .sk-rect {
            background-color: #fff;
            height: 100%;
            width: 4px;
            margin-right:5px;
            display: inline-block;
            -webkit-animation: sk-waveStretchDelay 1.2s infinite ease-in-out;
            animation: sk-waveStretchDelay 1.2s infinite ease-in-out; }
        .sk-wave .sk-rect1 {
            -webkit-animation-delay: -1.2s;
            animation-delay: -1.2s; }
        .sk-wave .sk-rect2 {
            -webkit-animation-delay: -1.1s;
            animation-delay: -1.1s; }
        .sk-wave .sk-rect3 {
            -webkit-animation-delay: -1.0s;
            animation-delay: -1.0s; }
        .sk-wave .sk-rect4 {
            -webkit-animation-delay: -0.9s;
            animation-delay: -0.9s; }
        .sk-wave .sk-rect5 {
            -webkit-animation-delay: -0.9s;
            animation-delay: -0.9s; }
        .sk-wave .sk-rect6 {
            -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s; }
        .sk-wave .sk-rect7 {
            -webkit-animation-delay: -0.7s;
            animation-delay: -0.7s; }
        .sk-wave .sk-rect8 {
            -webkit-animation-delay: -0.6s;
            animation-delay: -0.6s; }
        .sk-wave .sk-rect9 {
            -webkit-animation-delay: -0.5s;
            animation-delay: -0.5s; }

        @-webkit-keyframes sk-waveStretchDelay {
            0%, 40%, 100% {
                -webkit-transform: scaleY(0.6);
                transform: scaleY(0.6); }
            20% {
                -webkit-transform: scaleY(1);
                transform: scaleY(1); } }

        @keyframes sk-waveStretchDelay {
            0%, 40%, 100% {
                -webkit-transform: scaleY(0.6);
                transform: scaleY(0.6); }
            20% {
                -webkit-transform: scaleY(1);
                transform: scaleY(1); } }

    </style>-->

<!-- 外部脚本资源加载 -->
<script src="../../../js/reactlocal/react-with-addons.min-0.14.3.js"></script>
<script src="../../../js/reactlocal/react-dom.min-0.14.3.js"></script>
<script src="../../../js/reactlocal/ReactRouter.min-2.0.0.js"></script>
<script src="../../../js/reactlocal/fastclick.min-1.0.6.js"></script>
<script src="../../../js/reactlocal/lie.polyfill.min-3.0.2.js"></script>
<script src="../../../js/reactlocal/salt-router.min-0.0.2.js"></script>
<!-- 钉钉 -->
<script src="../../../js/reactlocal/dingtalk-ali-1.9.0.js"></script>
<!-- 微信 -->
<script src="../../../js/reactlocal/jweixin-1.2.0.js"></script>
<!-- <script src="../../../fmui/lib/console.min.js" ></script> -->
<!-- <script src="../../../fmui/libdingding/console.min.js"></script> -->
<script src="../../../js/jquery-3.1.0.min.js"></script>
<script>
	// 仅开发使用
      //localStorage.setItem('context','http://192.168.8.127:8080/flexoffice');
      //localStorage.setItem('context','http://localhost:8081/flexoffice');
</script> 
<!-- 项目不需要变化的样式资源加载 --> 
<link rel="stylesheet"  href="../../../fmui/css/iconfont-office.min.css">
<link rel="stylesheet"  href="../../../fmui/css/common.min.css">

<!-- 必须要引用-->
<script type="text/javascript">
    document.write('<script src="../../../js/version.js?_='+Math.random()+'"><\/script>');
</script>

<!-- 项目样式资源加载 -->
<script type="text/javascript">
    includeIndexCssFile(['./app.css?_v='+flexVersion
    ]);
</script>



</head>
<body>
<!-- Nowa Server 注入位置 -->
<!-- nowa server injects -->

<!--<div class="loading-containter">
<div class="loading-wrapper">
<div class="sk-wave" >
<div class="sk-rect sk-rect1"></div>
<div class="sk-rect sk-rect2"></div>
<div class="sk-rect sk-rect3"></div>
<div class="sk-rect sk-rect4"></div>
<div class="sk-rect sk-rect5"></div>
<div class="sk-rect sk-rect6"></div>
<div class="sk-rect sk-rect7"></div>

</div>
<p class="sk-wave-text">钉钉授权中,请稍后</p>
<p class="sk-wave-title">论坛，快人一步</p>
</div>
</div>-->
<!-- <iframe id="hidden_iframe" style="display:none;" scrolling="no" frameborder="0" name="hidden_iframe" 
src="../../jsp/refresh.jsp"></iframe> -->
<input type="hidden" id="userHiddenDdId" value="011443510239696192"/>
<input type="hidden" id="userHiddenId" value="4028803a62ce13470162d13e5fe0006c"/>
<input type="hidden" id="orgHiddenId" value="defaultOrgId"/>
<input type="hidden" id="orgHiddenName" value="机构"/>
<input type="hidden" id="userHiddenName" value="论坛1"/>
<input type="hidden" id="context" value=""/>
<input type="hidden" id="officeContext" value="">
<input type="hidden" id="token" value=""/>
<input type="hidden" id="hasBottomTab" value=""/>
<div id="App"></div>
<!-- <script src="../../../fmui/lib/base.js" defer></script>
<script src="../../../js/customize.js" ></script>
<script src="./fmui/libdingding/base.js" ></script>
<script src="../../../js/userinfoutils.js" defer></script> -->
<!-- 项目脚本资源加载 -->
<script type="text/javascript">
    includeIndexJsFile([
    '../../../js/emp.js?_v='+flexVersion,
    '../../../js/customize.js?_v='+flexVersion,
    '../../../fmui/lib/base.js?_v='+flexVersion,
    '../../../js/userinfoutils.js?_v='+flexVersion
    ]);
    var appJsUrl={url:'../dist/app.js?_v='+flexVersion,cache:true};
</script>
<script>
  window.onload = initFun;
  function initFun(){

    var userInfo = getLoginUserInfo();
    if(userInfo != null && userInfo != "" && userInfo != undefined){
        realCorpId = userInfo.baseCropId;
        //$("#context").val(userInfo.context);
        $("#userHiddenId").val(userInfo.userId);
        //$("#userHiddenDdId").val(userInfo.userId);
        $("#userHiddenName").val(userInfo.userName);
        // $("#orgHiddenId").val(result.ezplatformOrgId);
        $("#orgHiddenName").val(userInfo.orgName);
        //$(".loading-containter").hide();
        $("#token").val(userInfo.token);
        $.getScript(appJsUrl,function(response,status){
        	    clearLoading();
                if(status!='success'){
                    alert('网络异常，js文件加载失败');
                }
            }
        );
        jsready(function(result1){});
        /*getUser(function (result) {
        var result = JSON.parse(result);
        if (result.loginResult) {
            
            $.getScript('../dist/app.js', function (response, status) {
                if (status != 'success') {
                alert('网络异常，js文件加载失败');
                }
            }
            );
            jsready(function (result1) {});
        } else {
            login(function(result){
            var result = JSON.parse(result);
            if(result.loginResult){
                $("#userHiddenId").val(result.ezplatformUserId);
                $("#userHiddenDdId").val(result.userId);
                $("#userHiddenName").val(result.name);
                // $("#orgHiddenId").val(result.ezplatformOrgId);
                $("#orgHiddenName").val(result.ezplatformOrgName);
    //        $(".loading-containter").hide();
                $("#token").val(result.token);
                $.getScript('../dist/app.js',function(response,status){
                    if(status!='success'){
                    alert('网络异常，js文件加载失败');
                    }
                }
                );
                jsready(function(result1){});
            }else{
                alert('登录授权失败');
            }
            })
        }
        });*/

    }else{
        setTimeout(initFun(), 200);
    }
    
  }
</script>
<!-- <script type="text/javascript" src="./app.js"></script> -->
</body>
</html>
